﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Channels;
using System.ServiceModel.Web;
using System.Text;
using System.Threading;

namespace API
{

    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, MaxItemsInObjectGraph = 65536000)]
    public partial class REST : IREST
    {
        #region 框架测试服务

        /// <summary>
        /// 接口测试
        /// </summary>
        public Status HelloWorld(string test)
        {
            Status response = new Status();
            string statusCode = "";
            string errMsg = "";

            response.info =  "  输入了" + test;
            response.statusCode = statusCode;
            response.errMsg = errMsg;
            return response;
        }

        public Status HelloWorldForPost(Person person)
        {
            // Thread.Sleep(5000);
            Status response = new Status();
            string statusCode = "";
            string errMsg = "";
            response.info = "  输入了" + person.name;
            response.statusCode = statusCode;
            response.errMsg = errMsg;
            return response;
        }

        #endregion


    }
}
